<template>
  <div id="ding">
       <div>
        <p>我的订单</p>
        <span>所有订单 ></span>
      </div>
      <ul>
        <li v-for="(v,i) in arr" :key="i"><router-link to="">
          <img :src="v.img" alt="">
          <p>{{v.text}}</p>
          </router-link></li>
      </ul>
  </div>
</template>

<script>
export default {
data() {
    return {
         arr:[
      {
        img:"my/d/1.png",
        text:"待支付"
      },
       {
        img:"my/d/2.png",
        text:"待发货"
      },
       {
        img:"my/d/3.png",
        text:"已发货"
      },
       {
        img:"my/d/4.png",
        text:"已完成"
      },

       {
        img:"my/d/5.png",
        text:"退货/售后"
      },
    ]
    }
},
}
</script>

<style scoped>
#ding{
  width: 95%;
  height: 1.5rem;
  margin: auto;
  margin-top: 0.5rem;
  border: 1px solid gainsboro;
  border-radius: 0.1rem;
}
#ding div{
  width: 90%;
  height: 0.4rem;
  line-height: 0.4rem;
  margin: auto;
  border-bottom: 1px solid gainsboro;
}
#ding div p{
  display: inline-block;
  font-size: 0.16rem;
}
#ding div span{
  float: right;
}
#ding ul{
display: flex;
justify-content: space-around;
margin-top: 0.2rem;
}
#ding ul li{
  text-align: center;
}
#ding ul img{
  width: 0.3rem;
  height: 0.3rem;
}
</style>